package com.cy.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author : 残影
 * @Date: 2022/4/23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户详细信息Vo")
public class UserInfoVo {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("用户账号")
    private String username;

    @ApiModelProperty("用户昵称")
    private String nickName;

    @ApiModelProperty("手机号码")
    private String phoneNumber;

    @ApiModelProperty("隶属院系")
    private Long departmentId;

    @ApiModelProperty("隶属学院")
    private Long academyId;

    @ApiModelProperty("隶属院系名称")
    private String departmentName;

    @ApiModelProperty("隶属学院名称")
    private String academyName;

    @ApiModelProperty("用户性别（0男 1女 ）")
    private String sex;

    @ApiModelProperty("创建者")
    private String createBy;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新者")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("用户类型（0代表教师，1代表管理员）")
    private Integer userType;
}
